<template>
<h1>开关组件</h1>
  是否是管理员:<el-switch v-model="isAdmin"></el-switch>
  显示图片:<el-switch v-model="isShow"></el-switch>
  <hr>
  <img src="img.png" v-show="isShow" width="200">
</template>

<script setup>
import {ref} from "vue";

const isAdmin = ref(true);
const isShow = ref(true);
</script>
<style scoped>

</style>